package com.bishe.demo.modules.account.service;

import com.bishe.demo.modules.account.entity.Role;
import com.bishe.demo.modules.common.entity.ResultEntity;
import com.bishe.demo.modules.common.entity.SearchBean;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RoleService {
    ResultEntity<Role> insertRole(Role role);

    ResultEntity<Role> updateRole(Role role);

    ResultEntity<Role> deleteRoleByRoleId(int roleId);

    Role getRoleByRoleId(int roleId);

    Role getRoleByUserId(int userId);

    List<Role> getRoles();

    PageInfo<Role> getRolesBySearchBean(SearchBean searchBean);
}
